rust: Switch to 2021 edition
authorColin Walters <walters@verbum.org>
Thu, 9 Jun 2022 19:55:41 +0000 (15:55 -0400)
committerColin Walters <walters@verbum.org>
Thu, 9 Jun 2022 19:55:41 +0000 (15:55 -0400)
No real changes.

```
$ cargo fix --edition
note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo.
This may cause some dependencies to be built with fewer features enabled than previously.
More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html
When building the following dependencies, the given features will no longer be used:

  libc v0.2.126 removed features: extra_traits

The following differences only apply when building with dev-dependencies:

  getrandom v0.2.6 removed features: std
```

which looks OK to me.

Cargo.toml
rust-bindings/sys/Cargo.toml
tests/inst/Cargo.toml

index 0489bc5f5c766ffa36c5e7b9cec04b26a73772ee..68b3d2bf6f9fb93945d2fa65d1765033a4c4ad5e 100644 (file)
@@ -2,7 +2,7 @@
 authors = ["Felix Krull"]
 description = "Rust bindings for libostree"
 documentation = "https://docs.rs/ostree"
-edition = "2018"
+edition = "2021"
 keywords = ["ostree", "libostree"]
 license = "MIT"
 name = "ostree"
index fd453454db671fab8e6b248317467c7b95685075..5145ab87f158b1985b34e67e2c9929c7051c9656 100644 (file)
@@ -73,7 +73,7 @@ links = "ostree-1"
 name = "ostree-sys"
 repository = "https://github.com/ostreedev/ostree-rs"
 version = "0.10.0"
-edition = "2018"
+edition = "2021"
 [package.metadata.docs.rs]
 features = ["dox"]
 [package.metadata.system-deps.ostree_1]
index cf9c2dcc0144693c0551051715f67cc89388fb03..cd3515b5710e5a61a4574bb36a53dba5e8ac1d3e 100644 (file)
@@ -2,7 +2,7 @@
 name = "ostree-test"
 version = "0.1.0"
 authors = ["Colin Walters <walters@verbum.org>"]
-edition = "2018"
+edition = "2021"
 
 [workspace]